def func(a=None):
    if a:
        pass
    else:
        a = []
    a.append(1)
    print(a)

list = []
func(list)

func(list)
